//
//  AppDelegate.h
//  iRSSNews
//
//  Created by bk_sport on 12/28/12.
//  Copyright (c) 2012 bk_sport. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CategoriesViewController.h"
#import "FeedsViewController.h"
#import "SettingsViewController.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) CategoriesViewController *categories;
@property (strong, nonatomic) FeedsViewController *feeds;
@property (strong, nonatomic) SettingsViewController *settings;
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

@property (strong, nonatomic) NSFetchedResultsController *fetchedCategories;
@property (strong, nonatomic) NSFetchedResultsController *fetchedFeeds;
@property (strong, nonatomic) NSFetchedResultsController *fetchedTimeToClear;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
- (void)initValuesCategories;
- (void)initValuesFeeds;
@end

